package chainOfResponsibility;

/**
 * 责任链模式 适用于职责相同，程度不同
 */
public abstract class Handler {

    private Handler handler;

    //用来设置责任链
    public void setHandler(Handler handler) {
        this.handler = handler;
    }

    public Handler getHandler() {
        return handler;
    }

    public abstract void handleRequest(String request);
}
